package com.linewell.service;

import com.linewell.entity.Administrator;
import com.linewell.entity.UserInfo;
import com.linewell.utils.Msg;

import java.util.List;

/**
 * @Title: ssm2
 * @description:
 * @author: hyuhuang@linewell.com
 * @since:2018/1/17 8:36
 */
public interface IUserService {

    List<UserInfo> checkPunsterName(String punsterName);

    List<UserInfo> checkNamePwd(String punsterName, String password);

    boolean saveUserInfo(UserInfo userInfo);

    boolean uploadUserPicture(String picture,Long userId);

    Msg getHotUser(int page);

    Administrator checkAdmin(String punsterName, String password);

    Msg updataUserInfo(String userId, String nickName, String sex, String birthday, String userEmail, String myself);

    Msg changePwd(Long userId,String oldPwd, String newPwd);

    List<UserInfo> getUsers(int page, int limit);

    int getUserCount();

    List<UserInfo> getUsersByPunsterName(String keyword);

    Msg deleteAllUser(String userIds);

    Msg deleteUserByUserId(Long userId);

    Msg updateUserState(Long userId, int state);

    Msg updateUser(String field, String value, Long userId);

    UserInfo checkEmail(String punsterName, String email);

    UserInfo getUserByUserId(Long userId);

    Msg changePwdByCode(Long userId, String newPwd);
}
